import Mock from 'mockjs';

Mock.mock('/api/admin_login', 'post', () => {
    return Mock.mock ({
        code: 10001,
        data: {
            permissions: '6773877820553691112,6773877820553691156',
            role: '统计员',
            user_name: '@name'
        }
    })
});
Mock.mock('/api/management/config/fetch_permission_list', 'post', () => {
    return Mock.mock ({
        code: 10001,
        data: [
            {
                id: '6773877820553691156',
                permission_name: '设置',
                route_name: 'management.config'
            },
            {
                id: "6773877820553691112",
                permission_name: "统计",
                route_name: "management.statistics"
            }
        ]
    })
});
